package com.xc.tool.singletonMode;

/**
 * 登记式/静态内部类
 * lazy loading 效果
 * 在使用的时候在加载
 */
public class Singleton5 {
    private static class SingletonHolder {
        private static final Singleton5 INSTANCE = new Singleton5();
    }

    private Singleton5() {
    }

    public static final Singleton5 getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
